package com.tianji.api.client.remark;

import com.tianji.api.client.learning.fallback.LearningClientFallback;
import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import com.tianji.api.dto.leanring.LearningLessonDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "remark-service", path = "likes",fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {

    /**
     * 1、根据业务ID集合查询点赞状态
     */
    @GetMapping("list")
    Set<Long> isLiked(@RequestParam("bizIds") Iterable<Long> bizIds);
}
